package com.tea.funct.domain;

import com.tea.common.annotation.Excel;
import com.tea.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 结算管理对象 tea_settle
 *
 * @author Sophia
 * @date 2024-05-25
 */
public class TeaSettle extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 所属会员
     */
    @Excel(name = "所属会员")
    private Long memberId;

    /**
     * 可提现金额
     */
    @Excel(name = "可提现金额")
    private BigDecimal canWithdrawnAmount;

    /**
     * 已结算金额
     */
    @Excel(name = "已结算金额")
    private BigDecimal settledAmount;

    /**
     * 未结算金额
     */
    @Excel(name = "未结算金额")
    private BigDecimal unSettledAmount;

    /**
     * 个人收益
     */
    @Excel(name = "个人收益")
    private BigDecimal personalIncome;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setCanWithdrawnAmount(BigDecimal canWithdrawnAmount) {
        this.canWithdrawnAmount = canWithdrawnAmount;
    }

    public BigDecimal getCanWithdrawnAmount() {
        return canWithdrawnAmount;
    }

    public void setSettledAmount(BigDecimal settledAmount) {
        this.settledAmount = settledAmount;
    }

    public BigDecimal getSettledAmount() {
        return settledAmount;
    }

    public void setUnSettledAmount(BigDecimal unSettledAmount) {
        this.unSettledAmount = unSettledAmount;
    }

    public BigDecimal getUnSettledAmount() {
        return unSettledAmount;
    }

    public void setPersonalIncome(BigDecimal personalIncome) {
        this.personalIncome = personalIncome;
    }

    public BigDecimal getPersonalIncome() {
        return personalIncome;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("memberId", getMemberId())
                .append("canWithdrawnAmount", getCanWithdrawnAmount())
                .append("settledAmount", getSettledAmount())
                .append("unSettledAmount", getUnSettledAmount())
                .append("personalIncome", getPersonalIncome())
                .toString();
    }
}
